home *** CD-ROM | disk | FTP | other *** search
- Subject: A replacement for Alcyon's signal function
-
- I couldn't get the Alcyon signal function to work properly, and when I
- traced through it I discovered that it still calls the bdos set exception
- function which worked on cp/m68k systems, but apparently not on the ST.
- So I wrote a new signal to replace the old one. And since the ST has
- a few more options than vanilla cp/m68k, I added some additional signals.
- You can use this to set a trap for CNTRL-C, but be advised that you'll
- have to write your own error handler, and it's probably best to check and
- save the old value before you set it. (Just like the original signal, this
- function does not save the old vectors for you.) BTW the way cp/m68k handled
- the setting of exceptions (unless you used a bios call) was to fiddle with
- a structure of the following type passed in d1
- struct epb {
- int vecnum;
- long newvec; /* supplied by the caller */
- long oldvec; /*filled in by the bdos */
- };
-
- And now a question. The bdos calls (trap #2) do not seem to be documented
- anywhere. Some are identical to cp/m68k calls, but others are in no way
- the same. Does anyone have a list of the functions and what they do?
-